package org.grow.news.controller;

import org.grow.news.domain.AppNews;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class NewsController {
    @Value("${server.port}")
    private int port;

    @Value("${appname}")
    private String name;
    @GetMapping("/testmvc")
    public String forTest(){
        return String.format("hello %d === %s",port,name );

    }
}
